<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    
    <body>
        
        <ui:composition template="./TemplatePrincipal.xhtml">
            
            <ui:define name="left">
                <h:form>
                    <p:menu>
                        <p:submenu label="Bienvenido: #{UsuariosBean.u.control}">
                            <p:menuitem action="PrincipalEmpleador" ajax="false" value="Informacion General" icon="ui-icon ui-icon-home"/>
                            <p:menuitem action="#{EncuestasBean.queEncuestaEmpleadores}" ajax="false" value="Encuestas" icon="ui-icon ui-icon-star"/>
                            <p:menuitem action="#{UsuariosBean.cerrarSesion}" ajax="false" value="Salir" icon="ui-icon ui-icon-star"/>
                        </p:submenu>
                    </p:menu>
                </h:form>
            </ui:define>

            <ui:define name="content">
                <f:view>
                    <h:form>
                        <h1><h:outputText value="Create/Edit"/></h1>
                        <h:panelGrid columns="2">
                            <h:outputLabel value="Nocontrol:" for="nocontrol" />
                            <h:inputText id="nocontrol" value="#{ULaboralBean.ul.nocontrol}" title="Nocontrol" required="true" requiredMessage="The Nocontrol field is required."/>
                            <h:outputLabel value="NumeroProfe:" for="numeroProfe" />
                            <h:inputText id="numeroProfe" value="#{ULaboralBean.ul.numeroProfe}" title="NumeroProfe" required="true" requiredMessage="The NumeroProfe field is required."/>
                            <h:outputLabel value="Empresa1:" for="empresa1" />
                            <h:inputText id="empresa1" value="#{ULaboralBean.ul.empresa1}" title="Empresa1" required="true" requiredMessage="The Empresa1 field is required."/>
                            <h:outputLabel value="Superior1:" for="superior1" />
                            <h:inputText id="superior1" value="#{ULaboralBean.ul.superior1}" title="Superior1" required="true" requiredMessage="The Superior1 field is required."/>
                            <h:outputLabel value="Intermedio1:" for="intermedio1" />
                            <h:inputText id="intermedio1" value="#{ULaboralBean.ul.intermedio1}" title="Intermedio1" required="true" requiredMessage="The Intermedio1 field is required."/>
                            <h:outputLabel value="Super1:" for="super1" />
                            <h:inputText id="super1" value="#{ULaboralBean.ul.super1}" title="Super1" required="true" requiredMessage="The Super1 field is required."/>
                            <h:outputLabel value="Tecnico1:" for="tecnico1" />
                            <h:inputText id="tecnico1" value="#{ULaboralBean.ul.tecnico1}" title="Tecnico1" required="true" requiredMessage="The Tecnico1 field is required."/>
                            <h:outputLabel value="Otros1:" for="otros1" />
                            <h:inputText id="otros1" value="#{ULaboralBean.ul.otros1}" title="Otros1" required="true" requiredMessage="The Otros1 field is required."/>
                            <h:outputLabel value="Empresa2:" for="empresa2" />
                            <h:inputText id="empresa2" value="#{ULaboralBean.ul.empresa2}" title="Empresa2" />
                            <h:outputLabel value="Superior2:" for="superior2" />
                            <h:inputText id="superior2" value="#{ULaboralBean.ul.superior2}" title="Superior2" />
                            <h:outputLabel value="Intermedio2:" for="intermedio2" />
                            <h:inputText id="intermedio2" value="#{ULaboralBean.ul.intermedio2}" title="Intermedio2" />
                            <h:outputLabel value="Super2:" for="super2" />
                            <h:inputText id="super2" value="#{ULaboralBean.ul.super2}" title="Super2" />
                            <h:outputLabel value="Tecnico2:" for="tecnico2" />
                            <h:inputText id="tecnico2" value="#{ULaboralBean.ul.tecnico2}" title="Tecnico2" />
                            <h:outputLabel value="Otros2:" for="otros2" />
                            <h:inputText id="otros2" value="#{ULaboralBean.ul.otros2}" title="Otros2" />
                            <h:outputLabel value="Congruencia:" for="congruencia" />
                            <h:inputText id="congruencia" value="#{ULaboralBean.ul.congruencia}" title="Congruencia" required="true" requiredMessage="The Congruencia field is required."/>
                            <h:outputLabel value="Requisitos:" for="requisitos" />
                            <h:inputText id="requisitos" value="#{ULaboralBean.ul.requisitos}" title="Requisitos" required="true" requiredMessage="The Requisitos field is required."/>
                            <p:commandButton ajax="false" action="ULaboralConfirmar" value="Aceptar"/>
                            <p:commandButton ajax="false" action="PrincipalEmpleador" value="Cancelar" immediate="true"/>
                        </h:panelGrid>
                    </h:form>
                </f:view>

            </ui:define>

        </ui:composition>
        
    </body>
</html>
